/**
 * <p> 获取加载图片地址 </p>
 * examples: bg/bg.png
 * @param imgPath: string
 */
export const requireImg = (imgPath) => {
    let imgObj = new URL(`../assets/images/${imgPath}`, import.meta.url);
    // console.log(imgObj)
    console.log(import.meta.url)
    return new URL(`/src/assets/images/${imgPath}`, import.meta.url).href;
  };
